import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: () => import( '../views/HomeView.vue')
  },
  {
    path: '/about',
    component: () => import( '../views/AboutView.vue'),
    children:[
       {
      path: '/js',
      component: () => import( '../views/two/js.vue'),
      children:[
        {
          path: '/threen',
          component: () => import( '../components/threen.vue')
        },
      ]
    },
       {
      path: '/pty',
      component: () => import( '../views/two/Pty.vue')
    },

    ]
   
  }
]

const router = new VueRouter({
  routes
})

export default router
